Skip to content

Conversation

@potuz
Copy link
Collaborator

@potuz potuz commented Jan 3, 2026

fixes #41

h/t to @washosk for lending me a metal board access.

potuz and others added 8 commits January 2, 2026 21:40
- Base RV64I arithmetic assembly
- No Zb nor Vector extensions
- Naive implementation 1 block at a time and no pipelining for
  scheduling
- Add RISC-V 64 target to CI workflow with QEMU emulation
- Add riscv_hwprobe syscall for runtime CPU feature detection
- Detect Zknh+Zbkb for crypto, Zbb for bit manipulation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
potuz and others added 2 commits January 2, 2026 21:42
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add bindings_riscv64.go with supportedCPU=false (falls back to generic
  Go implementation until .syso file is added)
- Add RISC-V to go-bindings CI matrix with QEMU testing
- Cross-compile and test Go bindings on RISC-V using qemu-riscv64

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@potuz potuz force-pushed the riscv branch 2 times, most recently from c94ae80 to 5c1f310 Compare January 3, 2026 11:02
- Add build-syso.yml workflow that builds syso files for all platforms:
  - Linux x86 (hashtree_amd64.syso)
  - macOS arm64 (hashtree_darwin_arm64.syso)
  - Linux arm64 (hashtree_linux_arm64.syso)
  - Windows x86 (hashtree_windows_amd64.syso)
  - Linux RISC-V 64 (hashtree_linux_riscv64.syso)
- Workflow commits syso files back to the repo
- Triggers on any branch when src/ changes, or manual dispatch
- Enable native RISC-V support in bindings_riscv64.go

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
github-actions bot and others added 3 commits January 3, 2026 11:07
Allow CI tests to run after syso files are committed to validate them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Remove workflow file from trigger paths to prevent re-triggering
when the workflow itself is modified.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
potuz and others added 2 commits January 3, 2026 08:20
Use CGO_ENABLED=1 with the cross-compiler to properly link the
RISC-V syso file when building the test binary.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Bridges Go's HashtreeHash function to the C library's hashtree_hash,
which handles runtime CPU feature detection internally.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support RISC V natively

2 participants